<!--
  Generated template for the CustomerAddressAddPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>{{title}}</ion-title>
    <ion-buttons end>
      <button ion-button class="font_size_large  pl10 pr10" style="color: #FFFFFF !important;background-color: #2664be" (click)="push('AddressListPage')">确定</button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <div class="w12 bgcolor_white">
    <div class="jl_input">
      <div class="jl_input_item bor_bottom">
        <span class="w03">姓名</span>
        <input class="w09" [(ngModel)]="isname">
      </div>
    </div>
    <div class="jl_input">
      <div class="jl_input_item bor_bottom">
        <span class="w03">电话</span>
        <input class="w09" [(ngModel)]="ispho">
      </div>
    </div>
    <ng-container *ngIf="isWechat">
      <div class="w12  bgcolor_white">
        <div class="jl_form" (click)='chooseAddress()'>
          <div class="jl_form_item bor_bottom">
            <span class="w04 ">{{'所在区域' }}</span>
            <span class="w08 tr">{{data.KHDQ?data.KHDQ:'请选择'}}</span>
            <i class="fa fa-angle-right"></i>
          </div>
        </div>
      </div>
    </ng-container>
    <ng-container *ngIf="!isWechat">
      <div class="jl_form">
        <div class="jl_form_item bor_bottom" (click)="chooseAddress()">
          <span class="w03">选择地区</span>
          <span class="w09"><i class="fa fa-map-marker mr5" style="color:#347eff;"></i>{{address['name']}}</span>
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
    </ng-container>
    <div class="jl_input">
      <div class="jl_input_item bor_bottom pr15">
        <textarea class="w12" placeholder="{{'详细地址：街道/门牌号等'}}" [(ngModel)]="data.XXDZ"></textarea>
      </div>
    </div>

  </div>
  <ion-item class="w12 mt15" no-lines>
    <ion-label class="font_size_large" color="dark">设为默认</ion-label>
    <ion-toggle mode="ios" (ionChange)="shimo()" [(ngModel)]="ismor"></ion-toggle>
  </ion-item>
</ion-content>
